const connect = require("../sql");

async function queryadmin(req,res){
    const sql = "SELECT * FROM admin where level = 0";
    const result = await connect(sql,[])
    if(result.length){
        res.send({code:200,msg:result})
    }else{
        res.send({code:301,msg:"获取失败"})
    }
}

module.exports = {
    queryadmin
}